package com.fingard.dsp.startup;

import com.fingard.FGBiz;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * TODO ms
 * @author xuesl
 * @date 2020/7/7
 */
@Component
public class StartupListener implements ApplicationListener<ApplicationReadyEvent> {
    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {
        try {
            FGBiz.startDspServer(false);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
